<?
include ('inc/config.php');

if($_GET['table']) $_SESSION['FF']['table'] = $_GET['table'];
else $_GET['table'] = $_SESSION['FF']['table'];

?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=iso-8859-1">
<title>Contenuti</title>
<style type="text/css">@import 'css/common.css';</style>
<script type="text/javascript" src="js/common.js"></script>
</head>
<body id="contents">
<script type="text/javascript">FF.contents.loading(true);</script>
<div id="contentsContent">

	<div id="contentHeader">
		<?
		$_TABLE = new table($_GET['table']);
		$_TABLE->checkCrones();
		//$_TABLE->manageSettings($_GET['settings']);	
		$_SESSION['FF']['TABLE'] = $_TABLE->table;
		echo '<script>FF.contents.table = "'.$_TABLE->table.'"</script>';
		$tableTitle = $_CONF->get("TABLE.title", $_TABLE->CONF);
		
		include("inc/toolBar.php"); 
		?>
	
		<h1><?=(($tableTitle)?$tableTitle:$_TABLE->table)?> > <span class="pluginName"><?=$_GET['name']?></span></h1>
	</div>
		
	<? include('plugins/'.$_GET['file']); ?>
	
</div>
</body>
</html>
